﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Interview.API.Admin.ResultDto.Paged
{
    public class PagedList<T> : ListResult<T>, IPagedList<T>
    {
        /// <summary>
        /// 总数
        /// </summary>
        public int Total { get; set; }

        /// <summary>
        /// 页码
        /// </summary>
        public int PageIndex { get; set; }

        /// <summary>
        /// 每页显示条数
        /// </summary>
        public int PageSize { get; set; }

        public PagedList()
        {
        }

        public PagedList(int total, IEnumerable<T> result,int pIndex=1,int pSize=20) : base(result,pIndex,pSize)
        {
            Total = total;
            PageIndex = pIndex;
            PageSize = pSize;
        }
    }

}
